<?php
/**
 * +--------------------------------------------------------+
 * @Created by Phpstorm.
 * @Category UserSeeder.php
 * @Depiction
 * @Author hwy <429208948@qq.com>
 * @Date 2022/4/11  17:43
 * +--------------------------------------------------------+
 */

namespace Database\Seeders;


use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $user = new \App\Models\User;
        $user->name = 'user_admin';
        $user->mobile = '18459260001';
        $user->email = 'admin@qq.com';
        $user->avatar = 'http://img.duoziwang.com/2021/06/q101801413228587.jpg';
        $user->password = \Illuminate\Support\Facades\Hash::make('123456');
        $user->save();


        $user = new \App\Models\User;
        $user->name = 'user_huangwy';
        $user->mobile = '18459260002';
        $user->email = 'huangwy@qq.com';
        $user->avatar = 'http://img.duoziwang.com/2021/06/q101801413228588.jpg';
        $user->password = \Illuminate\Support\Facades\Hash::make('123456');
        $user->save();
    }
}
